package com.osc.exam.entity;

import com.osc.exam.base.BaseResponse;

public class AdminResponse<T> extends BaseResponse<T> {

    private T payload;

    public static <T> AdminResponse<T> result(Integer code, String message, T payload) {
        return new AdminResponse<>(code, message, payload);
    }

    public AdminResponse() {

    }

    public AdminResponse(Integer code, String message, T payload) {
        super(code, message);
        this.payload = payload;
    }

    public T getPayload() {
        return payload;
    }

    public void setPayload(T payload) {
        this.payload = payload;
    }
}